package org.luckyjourney.entity.consultants.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TalConsultantsDTO implements Serializable {

    @ApiModelProperty("注解id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("咨询师手机号")
    @NotBlank(message = "手机号不可为空")
    private String phone;

    @ApiModelProperty("咨询师真实姓名")
    private String counselorName;

    @Size(min = 6, message = "密码长度至少为6位")
    @ApiModelProperty("密码")
    private String password;

    private String code;
}
